package generadorDescriptores.test;

import java.io.File;

import javax.swing.JFileChooser;

public class SaveFile {

	
	public static void main(String[] args) {
		JFileChooser fc = new JFileChooser(); 
		
		int returnVal = fc.showSaveDialog(null);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            File file = fc.getSelectedFile();
            System.out.println(file.getPath()+"Saving: " + file.getName() + "." + "\n");
        } else {
            System.out.println("Save command cancelled by user." + "\n");
        }

	}

}
